package org.bot.plugin.window.event;

import org.bot.api.event.DataStorage;
import org.bot.api.event.EventName;
import org.bot.api.event.Events;
import org.bot.api.flow.FlowNode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @author 沧月
 * @create 0015 2023/10/15 12:57
 * @description <模拟鼠标双击事件>
 */

@Component
@EventName("双击（window）")
public class WindowDbClick implements Events {

    @Autowired
    @Qualifier("windowClick")
    Events events;

    @Override
    public Object exec(FlowNode note, DataStorage data) {
        events.exec(note, data);
        return events.exec(note, data);
    }
}
